﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Windows.Forms;

namespace 数据转换小工具
{
    class DubugLog
    {        // 错误日志。
        public static StreamWriter sw;
        public static void Init()
        {
            // 错误日志
            sw = new StreamWriter(Application.StartupPath + "\\日志\\Debug.txt", true, Encoding.Default);
        }
        public static void Close()
        {
            sw.Close();
        }

        public static void Dubug(string msg)
        {
            sw.WriteLine(msg);
        }

        public static void Dubug(Exception ex)
        {
            sw.WriteLine(ex.ToString());
        }
    }
}
